body {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
}

.title {
    padding-left: 10px;
    width: calc(100% - 10px);
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #CCCCCC;
}

.title-img {
    width: 28px;
    height: 26px;
}

.room {
    font-family: MicrosoftYaHei;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-left: 6px;
}

.deviceNum {
    font-family: MicrosoftYaHei;
    font-size: 14px;
    color: #999999;
    margin-left: 20px;
}

.main {
    width: 100%;
    height: calc(100% - 100px);
    overflow: hidden;
    position: relative;
}

.content {
    width: 10000px;
    height: 10000px;
    background-color: rgba(0, 0, 0, .1);
    position: relative;
    transform-origin: 0 0;
    top: 0;
    left: 0;
}

#parent {
    width: 100%;
    position: relative;
    /*border: 1px solid #000;*/
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

#box {
    margin: auto;
    width: 810px;
    height: 600px;
    border: 6px solid #000000;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*align-items: flex-start;*/
    /*box-sizing: content-box;*/
    overflow: auto;
}

#box div {
    box-sizing: border-box;
}

.item {
    z-index: 1;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 5px;
    border: 2px solid lightgray;
    cursor: move;
    height: 130px;
    width: 130px;
    background-image: url('../img/bg.png');
    background-size: 100% 100%;
}

.imgbox {
    width: 100%;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events:none;
}

.imgbox-img {
    position: absolute;
    top: 17px;
    left: 27px;
    width: 75px;
    height: 68px;
    pointer-events:none;
}

.hoverItem {
    background: rgba(108, 138, 182, .3) !important;
    z-index: 1002;
}

div.moving {
    border: 1px dashed gray;
    background: white;
}

div.draging {
    width: 130px;
    height: 130px;
    position: absolute;
    background: goldenrod;
    box-shadow: 0 0 2px 2px #555;
    border-radius: 5px;
    z-index: 500;
}

.conten {
    width: 100%;
    height: 50px;
    position: relative;
}

.conten_img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.name {
    font-size: 28px;
    font-weight: bold;
    color: red;
    z-index: 12;
}

#list {
    width: 350px;
    height: 600px;
    border: 1px solid #000;
    position: relative;
}

.comp {
    width: 150px;
    height: 100px;
    border-radius: 5px;
    margin: 5px;
    float: left;
    background: goldenrod;
    border: 1px solid lightgray;
    z-index: 1;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}


.status {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: MicrosoftYaHei;
    font-size: 12px;
    position: absolute;
    top: 33px;
}

.circle {
    border-radius: 50%;
    width: 6px;
    height: 6px;
    margin-right: 4px;
}

.on {
    color: #font-family: MicrosoftYaHei;
    font-size: 12px;
    color: #00FF00;
}

.on > .circle {
    background-color: #00AC06;
}

.off {
    color: #font-family: MicrosoftYaHei;
    font-size: 12px;
    color: #FF0000;
}

.off > .circle {
    background-color: #FF0000;
}

.isnull {
    color: #font-family: MicrosoftYaHei;
    font-size: 12px;
    color: #333333;;
}

.isnull > .circle {
    background-color: #75A1DA;
}

.list_name {
    width: 100%;
    height: 30px;
    background: #D4E0F1;
    border: 1px solid #CCCCCC;
    text-align: center;
    line-height: 30px
}


.parent {
    border: 0px solid #000;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}


#lines, #paper {
    position: fixed;
    top: 0px;
    right: 0;
    bottom: 0;
    left: 0;
}

#paper {
    display: flex;
    flex-flow: column;
}

#tool {
    width: auto;
    height: 60px;
    position: absolute;
    right: 20px;
    top: 100px;
    display: flex;
    flex-direction: row;
    z-index: 10;
}

.control {
    width: 73px;
    height: 28px;
    background: rgba(0, 0, 0, 0.60);
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.control-img {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.control-line {
    color: #ffffff;
    margin: 0 8px;
}

.toolBtn {
    width: auto;
    height: 28px;
    background: rgba(0, 0, 0, 0.60);
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 10px;
    cursor: pointer;
}

#canvasBox {
    flex: 2 2;
}

input[type=checkbox] {
    width: 20px;
    height: 20px;
}

#lines {
    z-index: 1;
    pointer-events: none;
}

#lines > * {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: #999;
    opacity: 0;
}

#lines > .show {
    opacity: .5;
}

#lines .vert {
    transform: translateX(-50%);
    height: 100%;
}

#lines .hori {
    transform: translateY(-50%);
    width: 100%;
}

.block {
    position: absolute;
    overflow: auto;
}

.block input {
    position: absolute;
    top: 10px;
    right: 10px;
}

.pop {
    min-width: 234px;
    padding: 10px;
    font-size: 14px;
    position: absolute;
    border-radius: 5px;
    font-family: MicrosoftYaHei;
    color: #FFFFFF;
    line-height: 22px;
    background: rgba(0, 0, 0, 0.70);
}

.row {
    margin: 4px 0;
    font-size: 12px;
}

.row > span {
    margin: 4px 0;
    font-size: 12px;
}

/*.pop-tips {*/
/*    transform-origin: 10% 100%;*/
/*}*/

/*.pop-tips:after {*/
/*    bottom: -7px;*/
/*    left: 16px;*/
/*    position: absolute;*/
/*    width: 12px;*/
/*    height: 12px;*/
/*    content: " ";*/
/*    transform: rotate(45deg);*/
/*    border: 1px solid #ecedee;*/
/*    border-top: 0;*/
/*    border-left: 0;*/
/*    background-color: #fff;*/
/*}*/
